package com.xxzb.pack0819;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

//探讨乱码的原因
public class DemoD {
    public static void main(String[] args) throws Exception {
        File file=new File("E:\\yongpangaofeng\\b.txt");
        InputStream in=new FileInputStream(file);
        byte[] bytes=new byte[12];
        int len=in.read(bytes);
        String str=new String(bytes,0,len);
        System.out.println(str);
        in.close();
    }
}
